package com.optimize.dao;

import java.util.List;

import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper;
import org.springframework.stereotype.Repository;

import com.base.dao.DataTemplateDaoImpl;
import com.optimize.entity.Power;


/** 
 * @author Hexrui
 * @date 2016年6月1日 下午7:12:07 
 */
@Repository("powerDao")
public class PowerDaoImpl extends DataTemplateDaoImpl<Power,Long> implements PowerDao{
	@Override
	public List<Power> findAllPower() {
		String sql="select time,power_total1,power_total2,power_total3 from Table20160519 order by time desc" ;
		return jt.query(sql, ParameterizedBeanPropertyRowMapper.newInstance(Power.class));
	}
}
